package cn.iocoder.yudao.module.infra.controller.admin.ocr.vo.config;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "Admin - OCR Configuration Page Request VO")
@Data
public class OcrConfigPageReqVO extends PageParam {

    @Schema(description = "Configuration name", example = "General OCR Config")
    private String name;

    @Schema(description = "OCR type", example = "general_basic")
    private String type;

    @Schema(description = "Configuration status", example = "1")
    private Integer status;

    @Schema(description = "Create time", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}